// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 77;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The land to the northeast is kind of a wasteland. But not your normal dry, hot Rokaj wasteland. The grass and trees are dead. The ground has been slowly poisoned. Twisted, malformed creatures have left tracks everywhere.";
	text2 = "You learned about these signs very early in your magical training. They indicate abandoned magical research. Wizards tend to be mentally scattered and are notoriously bad at cleaning up their messes.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "There is a series of farms along this coast. They appear to be mildly successful and have not been attacked recently, but all of the farmers are armed. The luxurious prosperity of the Gentle Coast has not reached this far east.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You meet a pack of twisted animals. Their joints bend at odd angles, their proportions are off, and their fur and skin have expanses of sickly, pink exposed flesh.";
	text2 = "The Ro probably enjoy having monsters like this wandering around. It gives them something good to hunt. The trophies are gloriously horrifying.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "You find the ruins of a small caravan. Mutant wildlife chased it back in this valley, trapped it, and attacked. You don't find any bones. The merchants managed to flee to safety. The beasts tore apart the wagons, though.";
	text2 = "Remembering what Crafter Lheure told you in Laskara, you inspect the wagons closely. They've been pretty shredded, but one of the planks on the ground has a moon painted on it. This must be his lost caravan.";
	code =
		if (gf(10,15) != 1)
			rs(2);
			else sf(177,11,1);
	break;
	
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "Each of the farms on this coast is worked by its own small clan. When you approach this farm, their warriors gather to greet you. They seem friendly enough.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach.";
	text1 = "They greet you. They are folk of the Gentle Coast. They aren't rich or decadent, but they like Haven. They offer you a humble meal and tea. You sit around a fire and speak with them.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just go.";
	text1 = "They wave as you depart.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Ask about the area.";
	text1 = "You learn that this is decent farmland, far enough away from the Low Dhaga to be spared raids. The only problem is the Erudico ruins to the north. They say that they are haunted, and monsters tend to wander outside.";
	text2 = "However, the ruins have been a lot quieter lately. You modestly take credit for this development, and they are grateful.";
	code =
		if (gf(14,11) == 0)
			rs(2);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Ask about the raids.";
	text1 = "They heard about the recent wave of raids, and they are horrified that any of the raiders would dare attack you. They say that the raiders mainly came from the Low Dhaga and they largely passed their farms by.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Try to trade.";
	text1 = "They have meat and cheese and the like, which they are happy to give to you. You're royalty, after all. They don't have anything of use for adventuring.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Depart.";
	text1 = "You give them a regretful farewell. They may be the nicest people you will ever meet in the Rokaj.";
	action = END_TALK;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "In this middle of this broad expanse of wildflowers, you find a small patch of dead earth. There is a shade standing in the middle of it. This doesn't really surprise you. In the Rokaj, the dead mingle freely with the living. And nag a lot.";
	text2 = "The shade stares at you as you approach. It takes the form of some Ro clan chief from centuries back. When you get close, it holds up a hand. _Stop. I speak from the heart of the Ro. I will judge you._";
	code =
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I'm a Havenite._";
	text1 = "The shade is silent for a long moment. _I don't know what that is. If you walk in this land, you are judged as a Ro. Do you Know? Do you Work? Do you hold our Deep Truth?_";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "_Fine. Judge me._";
	text1 = "There is a long silence. The shade stares at you. The air grows icy cold. You shiver. The shade is still for so long that you wonder if it's broken.";
	code =
		ro_faction(2);
	break;
	
begintalknode;
	state = 41;
	nextstate = 42;
	condition = 1;
	question = "Keep waiting.";
	text1 = "Finally, it speaks. _Your presence is known. You are here to give answers._";
	text2 = "_You are not for me. Others wait for you. You have things to prove. Your worthiness._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_I don't want to._";
	text1 = "The shade melts away. The air warms up. You are alone once again.";
	action = END_TALK;

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_And how do I do that, judgmental spirit?_";
	text1 = "The shade melts away. The air warms up. You are alone once again.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Ahhhh! A ghost!_ Attack.";
	text1 = "The shade says, _You attack the old spirits. You do not have the Knowing of the Ro. You are judged. Word of this will spread._";
	text1 = "The shade melts away. You are alone once again.";
	action = END_TALK;
	code =
		ro_faction(-2);
	break;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "You turn and walk away. No need to borrow trouble by consorting with weird mystery ghosts. The shade says something, but you don't hear it.";
	text2 = "Later, when you look back, it is gone.";
	action = END_TALK;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				